{layout name="layout" /}
<form id="form" action="{:url('fastshop/config/setting')}">
<div class="titlebar"><div class="fn-fb"><i class="iconfont icon-setup_icon"></i>功能配置</div></div>
<table class="formtable">
    <tr><th>商城支付:</th><td>
        <select datatype="*" class="select w180" name="payment_type_shop">
            <option value="0"{if $info.payment_type_shop == 0} selected{/if}>关闭积分支付</option>
            <option value="1"{if $info.payment_type_shop == 1} selected{/if}>应付积分</option>
            <option value="2"{if $info.payment_type_shop == 2} selected{/if}>购物积分</option>
        </select>
        <span class="gray">是否允许使用您的帐号余额来支付</span>
    </td></tr>
    <tr><th>积分比例(%):</th><td>
        <input class="input" datatype="n" type="text" name="payment_point_shop" value="{$info.payment_point_shop}" /> %
        <span class="gray">商城购买积分支付的占比</span>
    </td></tr>
    <tr><th>抢购支付:</th><td>
        <select datatype="*" class="select w180" name="payment_type">
            <option value="0"{if $info.payment_type == 0} selected{/if}>关闭积分支付</option>
            <option value="1"{if $info.payment_type == 1} selected{/if}>应付积分</option>
            <option value="2"{if $info.payment_type == 2} selected{/if}>购物积分</option>
        </select>
        <span class="gray">是否允许使用您的帐号余额来支付</span>
    </td></tr>
    <tr><th>积分比例(%):</th><td>
        <input class="input" datatype="n" type="text" name="payment_point" value="{$info.payment_point}" /> %
        <span class="gray">抢购积分支付的占比</span>
    </td></tr>
    <tr><th>积分名称:</th><td>
        <input class="input" datatype="s" type="text" name="shopping_name" value="{$info.shopping_name}" />
    </td></tr>
</table>
<div class="titlebar"><div class="fn-fb"><i class="iconfont icon-setup_icon"></i>提货规则</div></div>
<table class="formtable">
    <tr><th>提现周期(天):</th><td>
        <input class="input" datatype="n" type="text" name="cycle" value="{$info.cycle}" /> 天
        <span class="gray">每一次申请提现到账间隔天数</span>
    </td></tr>
    <tr><th>提现限额(元):</th><td>
        <input class="input" datatype="n" type="text" name="lack_cash" value="{$info.lack_cash/100}" />(￥)
        <span class="gray">应付金额最少多少钱的时候才允许提现</span>
    </td></tr>
    <tr><th>封顶限额(元):</th><td>
        <input class="input" datatype="n" type="text" name="amountlimit" value="{$info.amountlimit}" />(￥)
        <span class="gray">当委托销售收益得到多少后,必须提货后,才允许再次委托销售,0不限制</span>
    </td></tr>
</table>
<div class="titlebar"><div class="fn-fb"><i class="iconfont icon-setup_icon"></i>成交规则</div></div>
<table class="formtable"> 
    <tr><th>成交顺序:</th><td>
        <select datatype="*" class="select w180" name="is_priority">
            <option value="0"{if $info.is_priority == 0} selected{/if}>市场优先</option>
            <option value="1"{if $info.is_priority == 1} selected{/if}>客户有先</option>
        </select>
        <span class="gray">市场优先寄卖还是所属客户优先</span>
    </td></tr>
    <tr><th>限委托(天):</th><td>
        <input class="input" datatype="n" type="text" name="lock_sale_day" value="{$info.lock_sale_day}" />
        <span class="gray">新购买需要委托的商品只有到指定时间才允许上架销售,0不限制</span>
    </td></tr>
</table>
<div class="titlebar"><div class="fn-fb"><i class="iconfont icon-setup_icon"></i>购买规则</div></div>
<table class="formtable"> 
    <tr><th>老用户(单):</th><td>
        <input class="input" datatype="n" type="text" name="old_users" value="{$info.old_users}" />
        <span class="gray">新用户抢购多少单商品开始算老用户,0不限制</span>
    </td></tr>
    <tr><th>用户限抢(次):</th><td>
        <input class="input" datatype="n" type="text" name="day_ordernum" value="{$info.day_ordernum}" />
        <span class="gray">同一用户每天共允许抢购几次,0不限制</span>
    </td></tr>
    <tr><th>活动抢购(次):</th><td>
        <input class="input" datatype="n" type="text" name="sale_ordernum" value="{$info.sale_ordernum}" />
        <span class="gray">同一用户单个活动商品允许购买几次,0不限制</span>
    </td></tr>
    <tr><th>推荐绩效(人):</th><td>
        <input class="input" datatype="n" type="text" name="num_referee_people" value="{$info.num_referee_people}" />
        <span class="gray">每推荐N个人允许抢购(人数/N=单),0不限制</span>
    </td></tr>
</table>
<table class="formtable"> 
    <tr><th></th><td><input type="submit" value="确定" class="button submit" /><input type="reset" value="重置" class="button button-blank" /></td></tr>
</table>
</form>
<script type="text/javascript">
Do('base', 'layer', 'form', function () {
    $('#form').isForm();
})
</script>